package design.chain;

/**
 * ClassName:Teacher <br/>
 * description:  <br/>
 * Date:     2019/6/19、16:31 <br/>
 *
 * @author Plank
 */
public class TeacherHandler extends Handler{
    @Override
    void exe(String request) {
        if ("a".equalsIgnoreCase(request)) {
            System.out.println("teacher end");
        }else {
            if (getNext() != null) {
                getNext().exe(request);
            }else {
                System.out.println("teacher out");
            }
        }
    }
}
